package zcj.stu;

import org.springframework.beans.SimpleTypeConverter;

import java.util.Date;

public class TestSimpleConverter {
    public static void main(String[] args) {
        SimpleTypeConverter simpleTypeConverter = new SimpleTypeConverter();
        Boolean aBoolean = simpleTypeConverter.convertIfNecessary("1", boolean.class);
        System.out.println(aBoolean);
        Date date = simpleTypeConverter.convertIfNecessary("2022/09/11", Date.class);
        System.out.println(date);
    }
}
